package com.java2007.service;

import com.java2007.entity.CartItem;
import java.sql.SQLException;
import java.util.List;

/**
 * 餐车业务层
 */
public interface CartService {
    /**
     *
     * @param foodId 菜品id
     * @param num 菜品数量
     * @param list 餐车集合
     * @return
     */
    List<CartItem> add(int foodId, int num, List<CartItem> list) throws SQLException;
}
